<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
</head>
<body>
	<script type="text/javascript">
		//字符串的形式
		let date = new Date("May,20,2025,11:11:11")
		console.log(date)

		let date2 = new Date("2025/4/15, 11:11:11")
		console.log(date2)

		let date3 = new Date(2008, 1, 1, 11,11,11)
		console.log(date3)

		//用方法设置时间
		let date4 = new Date()
		date4.setFullYear(2024)
		date4.setMonth(11)
		date4.setDate(11)
		date4.setHours(11)
		date4.setMinutes(11)
		date4.setSeconds(11)
		console.log(date4)

	</script>
</body>
</html>